13 PRINT : PRINT : PRINT "BY ENTERING DATA AT THE END OF THIS PROGRAM IN A MATRIX OF '1'S AND '0'S AND SPECIFYING THE NUMBER OF ROWS AND COLUMNS YOU ARE USING A SHAPE TABLE WILL BE GENERATED."
14 PRINT "I HAVE USED A 16 X 14 MATRIX FOR THE EXAMPLES IN THE PROGRAM. THESE ARE SET IN LINES 6 AND 7. "
15 PRINT : PRINT "HIT THE SPACE BAR TO CONTINUE PROGRAM ANY OTHER KEY WILL END IT."
16 WAIT -16384,128: GET A$: IF A$ < >" " THEN END
17 HOME : PRINT "THE PROGRAM TAKES ABOUT 2 MINUTES TO RUN": PRINT : PRINT : PRINT
18 PRINT "THIS PROGRAM WAS DESIGNED ON A 48K MACHINE AND MAY NOT WORK ON A SMALLER MACHINE.": PRINT : PRINT : PRINT
19 FOR N = 1 TO SH
20 FOR J = 1 TO RO/2
25 FOR I = 1 TO CO
30 READ A%(N,(J -1) *CO *2 +I)
35 NEXT I
40 FOR I = 1 TO CO
45 READ A%(N,CO *2 *J -(I -1))
50 NEXT I
55 NEXT J
100 FOR J = 1 TO RO/2: FOR I = 1 TO CO: PRINT A%(N,(J -1) *2 *CO +I);: NEXT I: PRINT : FOR I = 1 TO CO: PRINT A%(N,CO *2 *J -(I -1));: NEXT I: PRINT : NEXT J
120 NEXT N
180 FOR N = 1 TO SH
200 X = 1:Y = 1
210 FOR I = 1 TO RO/2
230 FOR J = 1 TO CO/2
240 A$ = STR$(A%(N,X))
250 X = X +1
260 A$ = STR$(A%(N,X)) +A$
270 X = X +1
280 GOSUB 600
290 NEXT J
300 N%(N,Y) = 26:Y = Y +1
310 FOR J = 1 TO CO/2
320 A$ = STR$(A%(N,X))
330 X = X +1
340 A$ = STR$(A%(N,X)) +A$
350 X = X +1
360 GOSUB 700
370 NEXT J
380 N%(N,Y) = 10:Y = Y +1
390 NEXT I
395 NEXT N
396 N%(N,Y) = 00:Y = Y +1
399 N = 1:LE = SH *2 +9 +SH *Y:LE = MH *256 +ML -LE: POKE 116, INT(LE/256): POKE 115,LE - INT(LE/256) *256:ST = LE
400 POKE ST,SH: POKE ST +1,0
401 POKE 232,ST - INT(ST/256) *256
402 POKE 233, INT(ST/256)
405 FOR I = 1 TO SH:NU = 2 *SH +2 +(I -1) *Y: POKE ST +2 +2 *(I -1),NU - INT(NU/256) *256
410 POKE ST +3 +2 *(I -1), INT(NU/256)
415 NEXT
420 FOR I = 1 TO SH:NU = 2 *SH +2 +(I -1) *Y -1 +ST
422 FOR J = 1 TO Y
425 POKE NU +J,N%(I,J)
430 NEXT : NEXT
435 HGR2 : SCALE= 1: ROT= 0: HCOLOR= 3
440 FOR J = 1 TO 7
441 HCOLOR= J:SV = 1
442 SP = SH:SA = 1: IF SH >9 THEN SA = SP -9
450 FOR I = SA TO SP
455 DRAW I AT 25 *SV,25 *J
456 SV = SV +1
460 NEXT : NEXT
499 WAIT -16384,128: GET A$
500 TEXT : HOME : PRINT "YOUR SHAPE TABLE IS NOW READY FOR": PRINT "USE. YOU SHOULD START ANY PROGRAM USING THIS TABLE WITH THE FOLLOWING LINES."